/*
 ============================================================================
 Name		: MessagingPlusDocument.cpp
 Author	  : 
 Copyright   : Your copyright notice
 Description : CMessagingPlusDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "MessagingPlusAppUi.h"
#include "MessagingPlusDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CMessagingPlusDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMessagingPlusDocument* CMessagingPlusDocument::NewL(CEikApplication& aApp)
{
    CMessagingPlusDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
}

// -----------------------------------------------------------------------------
// CMessagingPlusDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMessagingPlusDocument* CMessagingPlusDocument::NewLC(CEikApplication& aApp)
{
    CMessagingPlusDocument* self = new ( ELeave ) CMessagingPlusDocument( aApp );

    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
}

// -----------------------------------------------------------------------------
// CMessagingPlusDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMessagingPlusDocument::ConstructL()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CMessagingPlusDocument::CMessagingPlusDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CMessagingPlusDocument::CMessagingPlusDocument(CEikApplication& aApp) :
    CAknDocument(aApp)
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CMessagingPlusDocument::~CMessagingPlusDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CMessagingPlusDocument::~CMessagingPlusDocument()
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CMessagingPlusDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CMessagingPlusDocument::CreateAppUiL()
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new ( ELeave )CMessagingPlusAppUi;
}

// End of File
